<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>会员系统</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

    <?php 

        //可以通过魔术方法实例化某个类就自动加载那个类
        function __autoload($_className){
            require  $_className.'.class.php';
        } 
        
        //直接实例化会报错，找不到类 
        //做个判断，假如接收值不为空，传值，假如为空，不传值
        //实例化主类
        if(isset($_GET['index'])){
           $_main = new Main($_GET['index']); //接收参数index
        }else{
            $_main = new Main();
        }
       
        
        //运行
        $_main->_run();
       
    
    ?>
             
</body>
</html>